<?php
/**
 * 获取基本配置信息
 * @author rayliu
 *
 */
class Const_BaseInfo {
    const PAGEROWS=10;
    const PARAM_N_PAGE = 'p';
    /**
     * 获取合同公司信息
     * 员工签合同的公司
     */
    public static function get_agree_company_list(){
        return array(
            1 => array(
                    'company_id' => 1,
                    'company_name' => '瑞庭网络技术(上海)有限公司'
                ),
            2 => array(
                    'company_id' => 2,
                    'company_name' => '上海瑞家信息技术有限公司'
                ),
        );
    }
    /**
     * 获取公司
     *
     */
    public static function get_company_list(){
        return array(
                1 => array(
                        'company_id' => 1,
                        'company_name' => '安居客集团'
                ),
        );
    }
    /**
     * 获取城市信息
     * @return array
     */
    public static function get_city_list(){
        apf_require_class('Const_MultiCity');
        return array(
            Const_MultiCity::CITY_ID_SHANGHAI => array (
                'city_id'=>Const_MultiCity::CITY_ID_SHANGHAI,
                'city_name'=>'上海',
                'pinyin'=>'shanghai',
                'short_pinyin'=>'sh',
                'code_prefix'=>'SH'
            ),
            Const_MultiCity::CITY_ID_SHENZHEN => array (
                'city_id'=>Const_MultiCity::CITY_ID_SHENZHEN,
                'city_name'=>'深圳',
                'pinyin'=>'shenzhen',
                'short_pinyin'=>'sz',
                'code_prefix'=>'SZ'
            ),
            Const_MultiCity::CITY_ID_BEIJING => array (
                'city_id'=>Const_MultiCity::CITY_ID_BEIJING,
                'city_name'=>'北京',
                'pinyin'=>'beijing',
                'short_pinyin'=>'bj',
                    'code_prefix'=>'BJ'
            ),
            Const_MultiCity::CITY_ID_CHENGDU => array (
                'city_id'=>Const_MultiCity::CITY_ID_CHENGDU,
                'city_name'=>'成都',
                'pinyin'=>'chengdu',
                'short_pinyin'=>'cd',
                    'code_prefix'=>'CD'
            ),
            Const_MultiCity::CITY_ID_TIANJIN => array (
                'city_id'=>Const_MultiCity::CITY_ID_TIANJIN,
                'city_name'=>'天津',
                'pinyin'=>'tianjin',
                'short_pinyin'=>'tj',
                    'code_prefix'=>'TJ'
            ),
            Const_MultiCity::CITY_ID_SUZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_SUZHOU,
                'city_name'=>'苏州',
                'pinyin'=>'suzhou',
                'short_pinyin'=>'szh',
                    'code_prefix'=>'SUZ'
            ),
            Const_MultiCity::CITY_ID_KUNSHAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_KUNSHAN,
                'city_name'=>'昆山',
                'pinyin'=>'kunshan',
                'short_pinyin'=>'ks',
                    'code_prefix'=>'SUZ'
            ),
            Const_MultiCity::CITY_ID_CHANGSHA => array (
                'city_id'=>Const_MultiCity::CITY_ID_CHANGSHA,
                'city_name'=>'长沙',
                'pinyin'=>'changsha',
                'short_pinyin'=>'cs',
                    'code_prefix'=>'CS'
            ),
            Const_MultiCity::CITY_ID_HANGZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_HANGZHOU,
                'citycode'=>'0571',
                'city_name'=>'杭州',
                'pinyin'=>'hangzhou',
                'short_pinyin'=>'hz',
                    'code_prefix'=>'HZ'
            ),
            Const_MultiCity::CITY_ID_CHONGQING => array (
                'city_id'=>Const_MultiCity::CITY_ID_CHONGQING,
                'city_name'=>'重庆',
                'pinyin'=>'chongqing',
                'short_pinyin'=>'cq',
                    'code_prefix'=>'CQ'
            ),
            Const_MultiCity::CITY_ID_GUANGZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_GUANGZHOU,
                'city_name'=>'广州',
                'pinyin'=>'guangzhou',
                'short_pinyin'=>'gz',
                    'code_prefix'=>'GZ'
            ),
            Const_MultiCity::CITY_ID_WUXI => array (
                'city_id'=>Const_MultiCity::CITY_ID_WUXI,
                'citycode'=>'0510',
                'city_name'=>'无锡',
                'pinyin'=>'wuxi',
                'short_pinyin'=>'wx',
                    'code_prefix'=>'SUZ'
            ),
            Const_MultiCity::CITY_ID_DALIAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_DALIAN,
                'city_name'=>'大连',
                'pinyin'=>'dalian',
                'short_pinyin'=>'dl',
                    'code_prefix'=>'DL'
            ),
            Const_MultiCity::CITY_ID_FOSHAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_FOSHAN,
                'city_name'=>'佛山',
                'pinyin'=>'foshan',
                'short_pinyin'=>'fs',
                    'code_prefix'=>'FS'
            ),
            Const_MultiCity::CITY_ID_FUZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_FUZHOU,
                'citycode'=>'0591',
                'city_name'=>'福州',
                'pinyin'=>'fuzhou',
                'short_pinyin'=>'fz',
                    'code_prefix'=>'FZ'
            ),
            Const_MultiCity::CITY_ID_HEFEI => array (
                'city_id'=>Const_MultiCity::CITY_ID_HEFEI,
                'city_name'=>'合肥',
                'pinyin'=>'hefei',
                'short_pinyin'=>'hf',
                    'code_prefix'=>'HF'
            ),
            Const_MultiCity::CITY_ID_HUIZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_HUIZHOU,
                'city_name'=>'惠州',
                'pinyin'=>'huizhou',
                'short_pinyin'=>'hui',
                    'code_prefix'=>'SZ'
            ),
            Const_MultiCity::CITY_ID_JINAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_JINAN,
                'city_name'=>'济南',
                'pinyin'=>'jinan',
                'short_pinyin'=>'jn',
                    'code_prefix'=>'JN'
            ),
            Const_MultiCity::CITY_ID_NANJING => array (
                'city_id'=>Const_MultiCity::CITY_ID_NANJING,
                'city_name'=>'南京',
                'pinyin'=>'nanjing',
                'short_pinyin'=>'nj',
                    'code_prefix'=>'NJ'
            ),
            Const_MultiCity::CITY_ID_QINGDAO => array (
                'city_id'=>Const_MultiCity::CITY_ID_QINGDAO,
                'city_name'=>'青岛',
                'pinyin'=>'qingdao',
                'short_pinyin'=>'qd',
                    'code_prefix'=>'QD'
            ),
            Const_MultiCity::CITY_ID_SANYA => array (
                'city_id'=>Const_MultiCity::CITY_ID_SANYA,
                'city_name'=>'三亚',
                'pinyin'=>'sanya',
                'short_pinyin'=>'sy',
                    'code_prefix'=>'SYA'
            ),
            Const_MultiCity::CITY_ID_XIAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_XIAN,
                'city_name'=>'西安',
                'pinyin'=>'xian',
                'short_pinyin'=>'xa',
                    'code_prefix'=>'XA'
            ),
            Const_MultiCity::CITY_ID_ZHENGZHOU => array (
                'city_id'=>Const_MultiCity::CITY_ID_ZHENGZHOU,
                'city_name'=>'郑州',
                'pinyin'=>'zhengzhou',
                'short_pinyin'=>'zz',
                    'code_prefix'=>'ZZ'
            ),
            Const_MultiCity::CITY_ID_WUHAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_WUHAN,
                'city_name'=>'武汉',
                'pinyin'=>'wuhan',
                'short_pinyin'=>'wh',
                    'code_prefix'=>'WH'
            ),
            //缩写需要得到验证
            Const_MultiCity::CITY_ID_SHIJIAZHUANG => array (
                'city_id'=>Const_MultiCity::CITY_ID_SHIJIAZHUANG,
                'city_name'=>'石家庄',
                'pinyin'=>'shijiazhuang',
                'short_pinyin'=>'sjz',
                    'code_prefix'=>'SJZ'
            ),
            Const_MultiCity::CITY_ID_NANCHANG => array (
                'city_id'=>Const_MultiCity::CITY_ID_NANCHANG,
                'city_name'=>'南昌',
                'pinyin'=>'nanchang',
                'short_pinyin'=>'nc',
                    'code_prefix'=>'NC'
            ),
            Const_MultiCity::CITY_ID_SHENYANG => array (
                'city_id'=>Const_MultiCity::CITY_ID_SHENYANG,
                'city_name'=>'沈阳',
                'pinyin'=>'shenyang',
                'short_pinyin'=>'sy',
                    'code_prefix'=>'SY'
            ),
            Const_MultiCity::CITY_ID_DONGGUAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_DONGGUAN,
                'city_name'=>'东莞',
                'pinyin'=>'dongguan',
                'short_pinyin'=>'dg',
                    'code_prefix'=>'FS'
            ),
            Const_MultiCity::CITY_ID_TAIYUAN => array (
                'city_id'=>Const_MultiCity::CITY_ID_TAIYUAN,
                'city_name'=>'太原',
                'pinyin'=>'taiyuan',
                'short_pinyin'=>'ty',
                    'code_prefix'=>'TY'
            ),
            Const_MultiCity::CITY_ID_NINGBO => array (
                'city_id'=>Const_MultiCity::CITY_ID_NINGBO,
                'city_name'=>'宁波',
                'pinyin'=>'ningbo',
                'short_pinyin'=>'nb',
                    'code_prefix'=>'NB'
            ),
            Const_MultiCity::CITY_ID_KUNMING => array (
                'city_id'=>Const_MultiCity::CITY_ID_KUNMING,
                'city_name'=>'昆明',
                'pinyin'=>'kunming',
                'short_pinyin'=>'km',
                    'code_prefix'=>'KM'
            ),
            Const_MultiCity::CITY_ID_XIAMEN => array (
                'city_id'=>Const_MultiCity::CITY_ID_XIAMEN,
                'city_name'=>'厦门',
                'pinyin'=>'xiamen',
                'short_pinyin'=>'xm',
                    'code_prefix'=>'XM'
            ),
            Const_MultiCity::CITY_ID_CHANGCHUN => array (
                'city_id'=>Const_MultiCity::CITY_ID_CHANGCHUN,
                'city_name'=>'长春',
                'pinyin'=>'changchun',
                'short_pinyin'=>'cc',
                    'code_prefix'=>'CC'
            )
        );
    }
    /**
     * 获取事业部信息
     * @return array
     */
    public static function get_business_list(){
        return array(
                1 => array(
                    'bu_id' => 1,
                    'bu_name' => '总部'
                ),
                2 => array(
                        'bu_id' => 2,
                        'bu_name' => '二手房'
                ),
                3 => array(
                        'bu_id' => 3,
                        'bu_name' => '新房'
                ),
                4 => array(
                        'bu_id' => 4,
                        'bu_name' => '租房'
                ),
                5 => array(
                        'bu_id' => 5,
                        'bu_name' => '商业地产'
                ),
                6 => array(
                        'bu_id' => 6,
                        'bu_name' => '移动'
                ),
        );
    }
    /**
     * 获取只能部门信息
     * @return array
     */
    public static function get_function_list(){
        return array(
            1 => array(
                'function_id' => 1,
                'function_name' => '总裁办公室'
            ),
            2 => array(
                'function_id' => 2,
                'function_name' => '总经办'
            ),
            3 => array(
                'function_id' => 3,
                'function_name' => '人力资源部'
            ),
            4 => array(
                'function_id' => 4,
                'function_name' => '财务部'
            ),
            5 => array(
                'function_id' => 5,
                'function_name' => '产品部'
            ),
            6 => array(
                'function_id' => 6,
                'function_name' => '技术部'
            ),
            7 => array(
                'function_id' => 7,
                'function_name' => '市场部'
            ),
            8 => array(
                'function_id' => 8,
                'function_name' => '运营部'
            ),
            9 => array(
                'function_id' => 9,
                'function_name' => '销售部'
            ),
            10 => array(
                'function_id' => 10,
                'function_name' => '销售管理部'
            ),
            11 => array(
                'function_id' => 11,
                'function_name' => 'BI部'
            ),
            12 => array(
                'function_id' => 12,
                'function_name' => '客服部'
            ),
            13 =>array(
                'function_id' => 13,
                'function_name' => '技术平台中心'
            ),
            14 =>array(
                 'function_id' => 14,
                 'function_name' => '技术管理中心'
                ),
            15 =>array(
                'function_id' => 15,
                'function_name' => '第一研发中心'
                ),
            16 =>array(
                'function_id' => 16,
                'function_name' => '第二研发中心'
                ),
        );
    }
    /* 数据删除 */
    const IS_DELETE_YES  = 2 ;//已删除
    const IS_DELETE_NO = 1; //未删除
    /*离职 同步hroa const_user*/
    const USER_WORK_NO = 2;//离职
    /* 离职类型 同步hroa const_user*/
    const USER_LEAVING_TYPE_NO_REPORT=3;//为来报到
    /* 任职类型 同步hroa const_work*/
    const WORK_MAIN  = 1 ;//主职
    /* 直线主管 同步hroa const_work*/
    const DIRECTOR_IS_DIRECT_YES = 1;//直线主管
}